<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                             "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:rich="http://richfaces.org/rich">
	<c:if test="${empty id}">
		<c:set var="id" value="photoNeedsAnId" />
	</c:if>
	<c:if test="${empty width}">
		<c:set var="width" value="50" />
	</c:if>
	<c:if test="${empty height}">
		<c:set var="height" value="75" />
	</c:if>
	<c:if test="#{empty src}">
		<c:if test="#{empty missingSrc}">
			<c:set var="src" value="/img/no_pic.jpg" />
		</c:if>
		<c:if test="#{not empty missingSrc}">
			<c:set var="src" value="#{missingSrc}" />
		</c:if>
	</c:if>
	<s:graphicImage value="#{src}">
		<s:transformImageSize width="#{width}" maintainRatio="true" />
	</s:graphicImage>
</ui:composition>